#include "bits/stdc++.h"
#include "unistd.h"
#include <ros/ros.h>
#include <time.h>

int main(int argc, char** argv)
{
    ros::init(argc, argv, "right_delay");
    ros::NodeHandle nh;
    ros::Rate       looprate(25);
    int             stim_blue;
    while ( ros::ok() ) {
        ros::param::get("stim_blue", stim_blue);
        if ( stim_blue == 0 ) {
            for ( int i = 0; i < 1000; i++ ) {
                usleep(10000);
            }
            ros::param::set("stim_blue", 1);
        }
        looprate.sleep();
    }
    return 0;
}
